<?php

namespace app\customer\controller;
use app\common\controller\PCBase;
use  app\customer\logic\TikMessageLogic;
use  think\App;
class BatchMessage extends PCBase
{


    protected $tikMessageLogic = null;
    public function __construct(App $app,TikMessageLogic $tikMessageLogic)
    {
        parent::__construct($app);
        $this->tikMessageLogic = $tikMessageLogic;
    }


    /**
     * @desc   群发消息列表
     * @author luckyXiong
     * @date   2024-05-21
     */
    public function index(){
        $data  = $this->request->post();
        $res   = $this->tikMessageLogic->get_batch_messages($data);
        return $this->jsonMessage(200,'true','获取成功',$res);
    }



    /**
     * @desc   群发消息操作
     * @author luckyXiong
     * @date   2024-05-21
     */
    public function batchSendMess(){
        $data  = $this->request->post();
        $res   = $this->tikMessageLogic->batch_send_messages($data);
        return $this->jsonMessage(200,'true','操作成功',$res);
    }



    /**
     * @desc   群发消息操作MQ
     * @author luckyXiong
     * @date   2024-05-21
     */
    public function send_batch_messages(){
        $data  = $this->request->post();
        $res   = $this->tikMessageLogic->send_batch_messages($data);
        return $this->jsonMessage(200,'true','操作成功',$res);
    }

















}